package xyz.lne.researchgroupmanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author team7
 * @since 2021-01-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysLog对象", description="")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志id")
    @TableId(value = "log_id", type = IdType.AUTO)
    private Integer logId;

    @ApiModelProperty(value = "日志描述，如洪七公登录")
    private String description;

    @ApiModelProperty(value = "日志类型，DEBUG,INFO,ERROR")
    private String type;

    @ApiModelProperty(value = "函数的名称")
    private String function;

    @ApiModelProperty(value = "用户请求的ip")
    private String ip;

    @ApiModelProperty(value = "传入的参数")
    private String parameter;

    @ApiModelProperty(value = "操作的用户名")
    private String userName;

    @ApiModelProperty(value = "发生异常的信息")
    private String exception;

    @ApiModelProperty(value = "发生时间")
    private Date createTime;


}
